import { db } from "./db/db_config";
async function test() {
  let querySql = "SELECT '菜鸟' FROM  test";
  let updateSql =
    "UPDATE test SET user_name = ? , age = ?,obj = ? WHERE user_id = ?";
  let insertSql = "INSERT INTO test(user_name,age,obj,sex) VALUES(?,?,?,?)";
  var addSqlParams = ["菜鸟", 18, "上班", 1];
  let upPam = ["小菜年", 6, "打游戏", 3];
  let deleteSql = "DELETE FROM test WHERE user_id =?";
  let dePam = [4];
  let res = await db(deleteSql, dePam);
  // let res = await db(querySql);
  console.log("外层接收到返回值", res);
}
test();
